package com.ur.bean;

import java.util.List;

import org.nutz.dao.entity.annotation.Column;
import org.nutz.dao.entity.annotation.Id;
import org.nutz.dao.entity.annotation.ManyMany;
import org.nutz.dao.entity.annotation.Table;


@Table("tb_role")
public class Role{
	
	@Column
	@Id
	private int referenceId;
	
	@Column
	private String roleName;
	
	@ManyMany(target = Authority.class, relation = "tb_role_authority", from = "role_refId", to = "authority_refId")
	private List<Authority> authority;

	public int getReferenceId() {
		return referenceId;
	}

	public void setReferenceId(int referenceId) {
		this.referenceId = referenceId;
	}

	public String getRoleName() {
		return roleName;
	}

	public void setRoleName(String roleName) {
		this.roleName = roleName;
	}

	public List<Authority> getAuthority() {
		return authority;
	}

	public void setAuthority(List<Authority> authority) {
		this.authority = authority;
	}

}
